﻿#define _CRT_SECURE_NO_WARNINGS 

#include "Stack.h"

int main()
{
	ST st;
	STInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);


	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);

	while (!StackEmpty(&st))
	{
		//È¡Õ»¶¥ÔªËØ
		STDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}

	STDestroy(&st);
	return 0;
}